// 用户相关接口
var express = require('express');
const newsController = require('../../controllers/web/newsControllers');
var newsRouter = express.Router();

const multer  = require('multer')
const upload = multer({ dest: 'public/newsUploads/' })



// 获取新闻列表接口
newsRouter.get('/news/list',newsController.list) 

// 获取新闻详情接口
newsRouter.get('/news/detail',newsController.detail)

// 获取最近新闻接口
newsRouter.get('/news/recent',newsController.recent)

module.exports = newsRouter;